Reference: endProc

endProc's job is to clean up per-instance resources when a filtering operation ends.

Prototype

int endProc(FilterActivation *fa, const FilterFunctions *ff);

Parameters:
    fa        Pointer to filter activation structure
    ff        Pointer to callback function structure

Return value:
    Function should return zero.

Exceptions:
    No exceptions should be thrown from this function.

Requirements:
    Function may be omitted.  No default action is taken.

Remarks

endProc is called for all filters, even if the filter initialization process is aborted.  This means that a filter may have its endProc called but not startProc, so endProc should check if a resource has been allocated and mark it as unallocated after it is freed:

if (mfd->resource) {
    free(mfd->resource);
    mfd->resource = NULL;
}

[up] back to main page


VirtualDub external filter SDK 1.05©1999-2001 Avery Lee <phaeron@virtualdub.org>